package com.web.rabitmq.receiver.com.web.listener;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * Topic
 */
@Component
public class TopicReciverListener {
    @RabbitHandler
    @RabbitListener(queues = "api.core")
    public void user(String msg) {
        System.out.println("api.core接收到的消息："+msg);
    }
}
